package cn.jeeweb.modules.web.civil.service.impl;

import cn.jeeweb.core.common.service.impl.CommonServiceImpl;
import cn.jeeweb.modules.web.civil.mapper.HuCivilMsgMapper;
import cn.jeeweb.modules.web.civil.entity.HuCivilMsg;
import cn.jeeweb.modules.web.civil.service.IHuCivilMsgService;
import cn.jeeweb.modules.web.expertise.entity.HuExpertiseMsg;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**   
 * @Title: 公务员股-效果图数据
 * @Description: 公务员股-效果图数据
 * @author hs
 * @date 2018-03-02 15:59:06
 * @version V1.0   
 *
 */
@Transactional
@Service("huCivilMsgService")
public class HuCivilMsgServiceImpl  extends CommonServiceImpl<HuCivilMsgMapper,HuCivilMsg> implements  IHuCivilMsgService {

    @Override
    public HuCivilMsg selectByLadorId(String laborId) {
        List<HuCivilMsg> expertiseMsgs = baseMapper.selectByLadorId(laborId);
        if(expertiseMsgs != null && expertiseMsgs.size() > 0){
            return expertiseMsgs.get(0);
        }
        return new HuCivilMsg();
    }
}
